#include <stdio.h>

void CH ( const char *A , size_t N )
{
    printf("%s所占内存为%ld\n", A ,N);
}

int main()
{
    CH ( "int",   sizeof(int));
    CH ( "char",  sizeof(char) );
    CH ( "short", sizeof(short) );
    CH ( "long",  sizeof(long) );
    CH ( "float", sizeof(float) );
    CH ( "double",sizeof(double) );
    CH ( "long double",sizeof(long double) );

    return 0;
}